<?php

namespace DesignNew\SimpleFactory;

use DesignNew\SimpleFactory\Door;
/**
 * 首先是房门的接口和实现
 */
class WoodenDoor implements Door
{
    protected $width;
    protected $height;

    public function __construct(float $width, float $height)
    {
        $this->width = $width;
        $this->height = $height;
    }

    public function getWidth():float
    {
        return $this->width;
    }

    public function getHeight():float
    {
        return $this->height;
    }
}